from django.contrib import admin

# Register your models here.
from .models import *

#注册该模型
@admin.register(User)
class UserAdmin(admin.ModelAdmin):
    # 列表页面显示字段
    list_display = ['username', 'password','tel','address']

# # 用户名,models.CharField字符串类型
# username = models.CharField(max_length=255)
# # 密码,models.CharField字符串类型
# password = models.CharField(max_length=255)
# # 联系电话,models.CharField字符串类型
# tel = models.CharField(max_length=255)
# # 配送地址,models.CharField字符串类型
# address = models.CharField(max_length=255)